﻿
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>管理员管理</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link rel="stylesheet" href="../layui/css/layui.css" media="all">
<link rel="stylesheet" href="css/myCss.css">
<script src="../layui/layui.js" charset="utf-8"></script>
<script src="js/jquery-1.12.4.js" type="text/javascript"></script>
<script type="text/javascript">
    function getUrlParam(name) {
        var reg = new RegExp("(^|&)" + name + "=([^&]*)(&|$)"); //构造一个含有目标参数的正则表达式对象
        var r = window.location.search.substr(1).match(reg);  //匹配目标参数
        if (r != null) return unescape(r[2]); return null; //返回参数值
    }
    //获取图片真实宽高
    function getImageWidth(url, callback) {
        var img = new Image();
        img.src = url;

        // 如果图片被缓存，则直接返回缓存数据
        if (img.complete) {
            callback(img.width, img.height);
        } else {
            // 完全加载完毕的事件
            img.onload = function () {
                callback(img.width, img.height);
            }
        }
    }
</script>

    <script type="text/javascript">
        
        layui.use(['util'], function () {
            var util = layui.util;
            
        });

        function deleteUser(delid) {
            var index = parent.layer.confirm('确定要删除这个用户吗？', {
                btn: ['删除', '我再想想'] //按钮
            }, function () {
                parent.layer.close(index);
                location.href = 'adminUserList.html?action=del&id=' + delid;
            }, function () {
                parent.layer.close(index);
            });
        }
    </script>
</head>
<body>
    <p>
        <blockquote class="layui-elem-quote">
            管理员列表</blockquote>
    </p>
    &nbsp;<a href="adminUser.html" class="layui-btn ">操作管理员</a> <a href="javascript:;"
        class="layui-btn  layui-btn-normal">管理员列表</a>
    <hr />
    <br />
    <table class="layui-table">
        <thead>
            <tr>
                <th>
                    用户名
                </th>
                <th>
                    真实姓名
                </th>
                <th>
                    级别
                </th>
                <th>
                    操作
                </th>
            </tr>
        </thead>
        <tbody>
            
            <tr>
                <td>
                    admin
                </td>
                <td>
                    管理员
                </td>
                <td>
                    管理员
                </td>
                <td>
                    <button class="layui-btn layui-btn-mini " title="修改" onclick="javascript:location.href='adminUser.html';">
                        <i class="layui-icon">&#xe642;</i></button>

                    <button title="删除" class="layui-btn layui-btn-mini layui-btn-danger" onclick="javascript:deleteUser('2');">
                        <i class="layui-icon">&#xe640;</i></button>

                </td>
            </tr>
          
        </tbody>
    </table>
</body>
</html>
